package com.mmsoft.findertalk.entity;

import java.text.SimpleDateFormat;
import java.util.Date;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class UserTemp extends EntityBase{
    private int id;
    private String email;
    private String password;
    private String name;
    private String lastname;
    private Date dateBorn;
    private String sex;
    private Date dateRegister;
    private Date dateDelete;
    private String registerCode;
    
    private long dateBornLong;
    private long dateRegisterLong;
    private long dateDeleteLong;
    
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLastname() {
        return lastname;
    }

    public void setLastname(String lastname) {
        this.lastname = lastname;
    }

    public Date getDateBorn() {
        return dateBorn;
    }
    
    public void setDateBorn(Date dateBorn) {
        this.dateBorn = dateBorn;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getDateRegister() {
        return dateRegister;
    }

    public String getStringDateRegister(){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd");
        return sdf.format(this.dateRegister);
    }
    
    public void setDateRegister(Date dateRegister) {
        this.dateRegister = dateRegister;
    }

    public Date getDateDelete() {
        return dateDelete;
    }

    public String getStringDateDelete(){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd");
        return sdf.format(this.dateDelete);
    }
    
    public void setDateDelete(Date dateDelete) {
        this.dateDelete = dateDelete;
    }

    public String getRegisterCode() {
        return registerCode;
    }

    public void setRegisterCode(String registerCode) {
        this.registerCode = registerCode;
    }
    
    public long getDateBornLong() {
        return dateBornLong;
    }

    public void setDateBornLong(long dateBornLong) {
        this.dateBornLong = dateBornLong;
    }

}
